<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>签到积分设置</title>
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/dpl.css" rel="stylesheet">
<link href="http://g.alicdn.com/bui/bui/1.1.21/css/bs3/bui.css" rel="stylesheet">
<script src="https://g.alicdn.com/??kissy/k/1.4.2/seed-min.js"></script>
<script src="http://g.alicdn.com/bui/bui/1.1.21/adapter.js"></script>
<script src="/assets/shopmanage/main.js"></script> 
<script src="/assets/shopmanage/gift_index.js"></script>
<script src="/assets/shopmanage/global_menu_kissy.js"></script>
</head>
<body style="width:990px;margin:0 auto;padding:10px 0;">

 <div class="doc-content">
    <div class="panel">
      <div class="panel-body">
	  <div class="row">
		<div class="span24 doc-content">
		<h3 class="pull-left">我的互动 >> 抽奖用户</h3>
		<div class="button-group pull-right">
			{include file='../../../PublicView/global_menu.html'}
		</div>
		<!-- <span class="label label-info  pull-right"><i class="icon-white icon-home"></i></span> -->
		</div>
	  </div>
	  
	  <hr />
	  <div class="button-group">
		  <a href="/?m=Shopmanage&c=Edit&a=gifts&eid={$eid}" class="button">奖品</a>
		  <a href="/?m=Shopmanage&c=wins&a=users&eid={$eid}" class="button">谁在抽奖</a>
		  <a href="/?m=Shopmanage&c=wins&eid={$eid}" class="button">谁中奖了</a>
	  </div>
	  <hr />
			<div class="row">
			  <div id="tab">
					 <ul class="bui-tab nav-tabs"> 
					 <form class="pull-right" method="post" action="/?a=users&c=wins&m=Shopmanage&eid={$eid}">
						<input type="text" name="usernick"  value="{$search|default:""}" class="control-text search-query">
						<button type="submit" class="button-small">搜索</button>
					 </form>
					 <li class="bui-tab-item {if $ctp==$key} bui-tab-item-selected{/if}" data-admin="{$admin}" data-tp="{$key}"><span class="bui-tab-item-text">全部用户</span></li>
					
					 <li><button class="button button-small button-success js-reset" data-eid="{$eid}">清空所有抽奖用户</button></li>
					<!--  {if $type==9}
					 <li class="pull-right"><button class="button button-small button-success list" data-ctp="{$ctp}"><i class="icon icon-white icon-list"></i>列表</button></li>
					 {else}
					 <li class="pull-right"><button class="button button-small button-warning trash" data-ctp="{$ctp}"><i class="icon icon-white icon-trash"></i>回收站</button></li>
					 {/if} -->
					 <!-- <li><button class="button button-small button-danger"><i class="icon-white icon-trash"></i>删除内容</button></li>
					 <li><button class="button button-small button-inverse">修改内容</button></li> -->
					 </ul>
			  </div>
			  <div class="form-horizontal">
			  <table cellspacing="0" class="table table-bordered" style="border-top:none">
          <tbody>
		  
            <tr>
              <th width="15"></th>
              <th>昵称</th>
              <th>混淆昵称</th>
              <th>剩余抽奖次数</th>
              <th>总抽奖次数</th>
			  <th>中奖次数</th>
            </tr>
		  {foreach key=key item=item from=$data}
            <tr class="re{$ctp}{$item.id}">
              <td><!-- <input type="checkbox"> --></td>
              <td>{$item.usernick|default:"未知"}</td>
              <td>{$item.mixednick|default:"未知"}</td>
              <td><span class="tms{$key}">{$item.score}</span>次<button class="button button-mini pull-right js-addtms" data-uid="{$key}">增加次数</button><button class="button button-mini button-danger pull-right js-deltms" data-uid="{$key}">清空</button></td>
              <td>{$item.lotts}次</td>
              <td>{$item.wins}次</td>
            </tr>
		{/foreach}
          </tbody>
        </table>
		<div>
          <!-- <ul class="toolbar pull-left">
            <li><label class="checkbox"><input type="checkbox"><a href="#">全选</a></label></li>
            <li><button class="button button-danger"><i class="icon-white icon-trash"></i>批量删除</button></li>
            <li><button class="button button-success">审核通过</button></li>
            <li><button class="button button-inverse">审核不通过</button></li>
          </ul> -->
		  <div class="pagination pull-right" data-totalpg="{$totalpg}" data-curpg="{$curpg}" data-action="{$current}">
			{$page}
          </div>
        </div>
			  </div>
			</div>			
			<input type="hidden" class="type" value="{$type|default:0}" />

	</div>
  </div>
</div>
</body>
</html>